package com.datastructure.test.printnumbers;

public class PrintNumbers {

    public static void main(String[] args) {

    }

    public int[] printNumbers (int n) {
        // write code here
        int target = (int)Math.pow(10,n);
        int[] result = new int[target-1];
        for(int i = 1;i<target;i++){
            result[i-1]=i;
        }
        return result;
    }
}
